package com.pj.control;


import com.pj.feign.ProductApiService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("")
public class SmsController {
    @Resource
    ProductApiService productApiService;

    @GetMapping("/feign/sendMsgV3")
    public String sendMsgV3(String msg) throws Exception{

        System.out.println("---------------------------msg:"+msg);

        return "success";
    }


    @GetMapping("/feign/sendMsgV4")
    public String sendMsg4(String msg) throws Exception{
        System.out.println("---------------------------msg2:"+msg);
        productApiService.findbyId("biz-123456"+msg);
        return "success:"+msg;
    }

}
